package com.system.training.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.system.employee.entity.Employee;

@Entity
@Table(name="t_training")
public class Training {
	private Long id;
	private Long empId;//员工Id
	@DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
	private Date beginTime;//开始时间
	@DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
	private Date overTime;//结束时间
	private String type;//培训类型
	private String organizer;//培训主办单位
	private String content;//培训内容
	private String address;//培训地点
	private String hour;//培训课时
	private String prover;//证明人
	
	
	//get方法
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public Long getEmpId() {
		return empId;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getBeginTime() {
		return beginTime;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getOverTime() {
		return overTime;
	}
	public String getType() {
		return type;
	}
	public String getOrganizer() {
		return organizer;
	}
	public String getContent() {
		return content;
	}
	public String getAddress() {
		return address;
	}
	public String getHour() {
		return hour;
	}
	public String getProver() {
		return prover;
	}
	
	//set方法
	public void setId(Long id) {
		this.id = id;
	}
	public void setEmpId(Long empId) {
		this.empId = empId;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	public void setOverTime(Date overTime) {
		this.overTime = overTime;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setOrganizer(String organizer) {
		this.organizer = organizer;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setHour(String hour) {
		this.hour = hour;
	}
	public void setProver(String prover) {
		this.prover = prover;
	}
}
